package com.kudian.restful.vo.comment;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.kudian.common.persistence.ResultObj;

import java.sql.Timestamp;

/**
 * Created by Administrator on 2016/5/30.
 */
public class CommentItemRetVO {
    private Integer commentId;
    private Short commentType;
    private Integer idValue;
    private String content;
    private Short commentRank;
    private Integer userId;
    private String userName;
    private Integer parentId;
    private Timestamp addTime;
    private Boolean isAnonymous;

    private CommentItemRetVO children;

    public Integer getCommentId() {
        return commentId;
    }

    public void setCommentId(Integer commentId) {
        this.commentId = commentId;
    }

    public Short getCommentType() {
        return commentType;
    }

    public void setCommentType(Short commentType) {
        this.commentType = commentType;
    }

    public Integer getIdValue() {
        return idValue;
    }

    public void setIdValue(Integer idValue) {
        this.idValue = idValue;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public Short getCommentRank() {
        return commentRank;
    }

    public void setCommentRank(Short commentRank) {
        this.commentRank = commentRank;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss", timezone="GMT+8")
    public Timestamp getAddTime() {
        return addTime;
    }

    public void setAddTime(Timestamp addTime) {
        this.addTime = addTime;
    }

    public Boolean getIsAnonymous() {
        return this.isAnonymous;
    }

    public void setIsAnonymous(Boolean isAnonymous) {
        this.isAnonymous = isAnonymous;
    }

    public CommentItemRetVO getChildren() {
        return children;
    }

    public void setChildren(CommentItemRetVO children) {
        this.children = children;
    }
}
